#ifndef __FONTPREVIEWWINDOW__H__
#define __FONTPREVIEWWINDOW__H__

#include <QWidget>
#include <QMainWindow>
#include "fontlistmodel.h"
#include "fontlistview.h"

QT_BEGIN_NAMESPACE
class QDragEnterEvent;
class QDragMoveEvent;
class QDragLeaveEvent;
class QDropEvent;
//class FontListModel;
//class FontListView;
QT_END_NAMESPACE

class FontPreviewWindow : public QMainWindow {
    Q_OBJECT
public:
    explicit FontPreviewWindow(QWidget *parent = nullptr);

private:
    FontListModel *m_fontModel;
    FontListView *m_fontView;

protected:
    void dragEnterEvent(QDragEnterEvent *event);
    void dragMoveEvent(QDragMoveEvent *event);
    void dragLeaveEvent(QDragLeaveEvent *event);
    void dropEvent(QDropEvent *event);


    // QWidget interface
protected:
    void resizeEvent(QResizeEvent *event) override;
};

#endif  //!__FONTPREVIEWWINDOW__H__
